package macrochip.vison.com.gps.utils;

/**
 * Created by XiaoShu on 2018/1/26 0026.
 */

public class ConvertUtils {
    /**
     * 将byte[2]转换成short
     * @param b
     * @return
     */
    public static short byte2Short(byte[] b){
        return (short) (((b[0] & 0xff) << 8) | (b[1] & 0xff));
    }
}
